package com.shy.configs.mvc.models.query;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class ProductQuery {
    @NotNull(message = "产品编码不能空")
    @Size(min = 2,max = 30,message = "产品编码长度在{min}-{max}之间")
    private String productCode;

    @NotNull(message = "产品名称不能空")
    @Size(min = 2,max = 30,message = "产品名称长度在{min}-{max}之间")
    private String productName;
}
